package cnitcast;

import java.util.Scanner;

public class Daxiao {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个数字：");
        int a=scanner.nextInt();
        int b=(int)(Math.random()*10);
        if (a>b){
            System.out.println("恭喜你赢了");
        }else {
            System.out.println("很遗憾你输了");
        }
    }
}
